/*
 * ProgressMonitor.java
 *
 * Created on 2007/11/24 +0900
 *
 * $Revision: 33 $
 * $Date: 2008-07-28 00:31:44 +0900 (月, 28 7 2008) $
 */

package org.gikolet.util;

/**
 * @author Tetsutaro (latest modification by $Author: tetsutaro.ss $)
 * @version $Revision: 33 $ $Date: 2008-07-28 00:31:44 +0900 (月, 28 7 2008) $
 */
public interface ProgressMonitor {
	void beginTask(String name, int allWork);

	void subTask(String name);

	void worked(int work);

	void done();

	boolean isCancelled();

	ProgressMonitor NULL = new ProgressMonitor() {

		public void beginTask(String name, int allWork) {
		}

		public void subTask(String name) {
		}

		public void worked(int work) {
		}

		public boolean isCancelled() {
			return false;
		}

		public void done() {
		}
	};
}
